<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flip 动画</title>
    <style>
        .box .item {
            width: 120px;
            /* background: #32c4de; */
            background: #1890ff;
            border-radius: 5px;
            margin: 10px;
            padding: 4px 10px;
            cursor: pointer;
        }
        .box .item1 {
            background: red;
        }
    </style>
</head>

<body>
    <h3>flip 动画可应用在元素dom发生了改变的地方</h3>

    div.box>div.item{$$}*12 <br>
    <br><br><br>

    <hr>
    <h3>学习记录</h3>

    <h6>First: 记录要监控的元素位置</h6>
    <h6>Last: 记录元素结构变化以后的位置</h6>
    <h6>Invert: 移动元素到First的位置</h6>
    <h6>Play: 使用动画还原元素到本来的位置</h6>

    <hr>



    <button onclick="px()">排序</button>

    <div class="box">
        <div class="item item1">01</div>
        <div class="item">02</div>
        <div class="item">03</div>
        <div class="item">04</div>
        <div class="item">05</div>
        <div class="item">06</div>
        <div class="item">07</div>
        <div class="item">08</div>
        <div class="item">09</div>
        <div class="item">10</div>
        <div class="item">11</div>
        <div class="item">12</div>
    </div>
    <script src="./Flip.js"></script>

    <script>


    </script>
</body>

</html>